package ch02_data.generics.classuse;

import java.util.ArrayList;
import java.util.List;

/**
 * 依然是泛型类，父类的参数类型也是由GenericClass在使用时定义
 *
 * @author by guodd
 * @version 1.0
 * @since 1.8
 */
public class Sub03<T> extends Sub<T> {
    private List<?> subList = new ArrayList<>();

    public List<?> getSubList() {
        return subList;
    }

    public void setSubList(List<?> subList) {
        this.subList = subList;
    }

    public Sub03() {
    }

    public Sub03(int i) {
    }

    public static void main(String[] args) {
        Sub03<Integer> objectSub03 = new Sub03<>();
        System.out.println(objectSub03.getSubList());
    }

}
